package com.software.utils;

import com.software.exception.ParamsException;

/**
 * @BelongsProject: Second-hand-trading-platform
 * @BelongsPackage: com.software.utils
 * @Author: wyj
 * @CreateTime: 2024-02-27  16:02
 * @Description:做参数判断时候使用
 * @Version: 1.0
 */
public class AssertUtil {
    public  static void isTrue(Boolean flag, String msg){
        if (flag){
            throw  new ParamsException(msg);
        }
    }
}
